<%--
  Created by IntelliJ IDEA.
  User: ChadZhao
  Date: 12-5-14
  Time: 下午12:47
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title><s:property value="articleTitle"/></title>
    <link href="<c:url value='/styles/sub.css'/>" rel="stylesheet" type="text/css">

</head>
<body>

<jsp:include page="/top.jsp"/>
<table width="1000"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="310" align="left" valign="top">
        <jsp:include page="/menu.jsp"/>
    </td>
    <td align="right" valign="top">
        <table width="670"  border="0" cellpadding="0" cellspacing="0" class="bk4">
      <tr>
        <td bgcolor="#f1f1f0"><jsp:include page="/pathmessage.jsp"/></td>
      </tr>
      <tr>
        <td><div class="title"><s:property value="articleTitle"/></div>
          <hr size="1">
          <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="fb">
            <tr align="center">
              <td width="33%">发布时间：<s:property value="articleTime"/>  </td>
              <td width="34%">字 体：【<a href="#" onClick="changeFont(1);return false;">大</a>&nbsp;&nbsp;<a href="#" onClick="changeFont(2);return false;">中</a>&nbsp;&nbsp;<a href="#" onClick="changeFont(3);return false;">小</a>】</td>
              <td>访问次数：<s:property value="readTimes"/></td>
            </tr>
            <tr>
              <td align="center" colspan="3"><div id='mediaplayer'></div></td>
            </tr>
          </table>
            <br>
            <div id="newsBodyTd" style="margin-top: 10px;text-indent: 22px;">
              <s:property value="contextArea" escape="false"/>
            </div>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<jsp:include page="/bottom.jsp"/>
<script type="text/javascript" src="<c:url value='/script/swfobject.js'/>"></script>

<script type="text/javascript">

    var flashvars = {
        'file':   '<s:property value="filePath"/>',
        'image': '<s:property value="imgPath"/>',
        'skin': '<c:url value='/script/skins/whotube.zip'/>',
        'autostart': 'true',
        'controlbar':     'bottom'
    };

    var params = {
        'allowfullscreen':        'true',
        'allowscriptaccess':      'always'
    };

    var attributes = {
        'id':                     'playerID',
        'name':                   'playerID'
    };
    var theHeight = '420';
    <s:if test="videoAudioFlag==\"2\"">theHeight = '24';</s:if>

    swfobject.embedSWF('<c:url value='/script/player.swf'/>', 'mediaplayer', '560', theHeight, '9', 'true',
            flashvars, params, attributes);


    function changeFont(type){
        var ff = "14pt";
        if(type == 2) ff = "12pt";
        else if(type == 3) ff = "10.5pt";
        var oTd = document.getElementById("newsBodyTd");
        oTd.style.fontSize = ff;
        var oAll = oTd.all;
        for(var i=0;i<oAll.length;i++) {
            oAll[i].style.fontSize = ff;
        }
    }
</script>

</body>
</html>